package org.xyl.model;

import java.time.LocalDateTime;

/**
 * 设备状态模型
 */
public class DeviceStatus {
    private String deviceId;
    private String deviceType;
    private String firmwareVersion;
    private double batteryVoltage;
    private int signalStrength;
    private int temperature;
    private int refreshCount;
    private LocalDateTime lastHeartbeatTime;
    private String networkType;
    private boolean online;
    
    // Getters and Setters
    public String getDeviceId() {
        return deviceId;
    }
    
    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }
    
    public String getDeviceType() {
        return deviceType;
    }
    
    public void setDeviceType(String deviceType) {
        this.deviceType = deviceType;
    }
    
    public String getFirmwareVersion() {
        return firmwareVersion;
    }
    
    public void setFirmwareVersion(String firmwareVersion) {
        this.firmwareVersion = firmwareVersion;
    }
    
    public double getBatteryVoltage() {
        return batteryVoltage;
    }
    
    public void setBatteryVoltage(double batteryVoltage) {
        this.batteryVoltage = batteryVoltage;
    }
    
    public int getSignalStrength() {
        return signalStrength;
    }
    
    public void setSignalStrength(int signalStrength) {
        this.signalStrength = signalStrength;
    }
    
    public int getTemperature() {
        return temperature;
    }
    
    public void setTemperature(int temperature) {
        this.temperature = temperature;
    }
    
    public int getRefreshCount() {
        return refreshCount;
    }
    
    public void setRefreshCount(int refreshCount) {
        this.refreshCount = refreshCount;
    }
    
    public LocalDateTime getLastHeartbeatTime() {
        return lastHeartbeatTime;
    }
    
    public void setLastHeartbeatTime(LocalDateTime lastHeartbeatTime) {
        this.lastHeartbeatTime = lastHeartbeatTime;
    }
    
    public String getNetworkType() {
        return networkType;
    }
    
    public void setNetworkType(String networkType) {
        this.networkType = networkType;
    }
    
    public boolean isOnline() {
        return online;
    }
    
    public void setOnline(boolean online) {
        this.online = online;
    }
}